<!doctype html>
<html lang="en" class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>后台登录</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" th:href="@{/css/font.css}">
    <link rel="stylesheet" th:href="@{/css/login.css}">
    <link rel="stylesheet" th:href="@{/css/xadmin.css}">
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
</head>
<body class="login-bg">
    
    <div class="login layui-anim layui-anim-up">
        <div class="message">[[#{login.tip}]]</div>
        <div id="darkbannerwrap"></div>
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <!--    如果msg的值为空，则不显示    -->
        <form method="post" class="layui-form" th:action="@{/user/login}">
            <input name="username" th:placeholder="#{login.username}"  type="text" lay-verify="required" class="layui-input" >
            <hr class="hr15">
            <input name="password" lay-verify="required" th:placeholder="#{login.password}"  type="password" class="layui-input">
            <hr class="hr15">
            <input th:value="#{login.btn}" lay-submit lay-filter="login" style="width:100%;" type="submit">
            <hr class="hr20" >
            <a class="layui-btn layui-btn-xs" th:href="@{/login(l='zh_CN')}">中文</a>
            <a class="layui-btn layui-btn-xs" th:href="@{/login(l='en_US')}">English</a>
        </form>
    </div>

    <script>

    </script>
</body>
</html>